package com.platform.dao;

import com.platform.entity.AgentEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 商品对应规格表值表Dao
 *
 * @author lipengjun
 * @email 939961241@qq.com
 * @date 2018-10-07 20:51:28
 */
public interface AgentDao extends BaseDao<AgentEntity> {

    List<AgentEntity> queryAgentList(Map<String, Object> map);

    int queryAgentTotal(Map<String, Object> map);

    List<AgentEntity> queryVendorList(Map<String, Object> map);

    int queryVendorTotal(Map<String, Object> map);

    List<AgentEntity> queryExistAgentApply(@Param("vendorRootDeptId") Long vendorRootDeptId, @Param("agentRootDeptId") Long agentRootDeptId);
}
